package com.jnshu.dao;

import com.jnshu.pojo.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper {
    //根据id删除
    int deleteByRoleId(Long id);
    //新增角色
    int insertBySelective(Role record);
    //根据id查询
    Role selectByRoleId(Long id);
    //根据id更新
    int updateBySelective(Role record);
    //分页列表查询
    List<Role> selectRoleList();
    //根据角色名查询
    Role selectByRoleName(String roleName);

}